<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
		<script type="text/javascript">
			var $app_root="__ROOT__";
			var $app_public="__PUBLIC__";
			var $app_url="__URL__";
			var $img_url="__IMGA__";
		</script>
		<link href="__PUBLIC__/admin/css/admin.css" rel="stylesheet" type="text/css" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<script type="text/javascript" src="__PUBLIC__/admin/js/jquery-1.7.2.min.js"></script>
		<!--Jquery UI插件-->
		<script type="text/javascript" src="__PUBLIC__/js/jquery-hcheckbox.js"></script>
		<script type="text/javascript" src="__PUBLIC__/js/jquery.idTabs.min.js"></script>
		<link href="__PUBLIC__/js/JqueryUi/css/custom-theme/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="__PUBLIC__/js/JqueryUi/js/jquery-ui-1.10.3.custom.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/js/JqueryUi/js/jquery-ui-timepicker-addon.js"></script>
		<!--UPLOADIFY-->  
		<script src="__PUBLIC__/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
        <script type="text/javascript" src="__PUBLIC__/admin/js/adminedit.js"></script>
		
</head>
<body id="conedit">
<form action="__URL__/editing" method="POST" enctype="multipart/form-data">
	<input type="hidden" name="catid" value="<?php echo ($list["catid"]); ?>"/>
<div>
	<ul class="idTabs"> 
	  <li><a href="#add_content">内容</a></li> 
	  <li><a href="#add_attach">相关设置</a></li>
	</ul> 
</div>
<div class="clear" style="height:10px;"></div>
<input type="hidden" name="id" value="<?php echo ($list["articleid"]); ?>"/>

<div id="add_content">
	<div class="edit_head">
		<ul>
			<li>
				<span>栏目：</span><select name="typeid" id="menu" class=""><option value="">请选择</option><?php foreach($menu as $key=>$value){ ?><option value="<?php echo $key ?>" 
					<?php
 if(is_numeric($menuvalue)){ $s=( ($menuvalue)==$key )?"selected":"";echo $s; } if(is_array($menuvalue)){ $s=( in_array($key,($menuvalue)) )?"selected":"";echo $s; } ?>

					 ><?php echo $value ?></option><?php } ?></select>
			</li>
			<li>
				<span>标题：</span> <input type="text" name="title" class="title" value="<?php echo ($list["title"]); ?>"/>
            </li>
            <li>
				<span>颜色：</span> <input type="text" name="titlecolor" id="color" style="width:100px;"  class="title"/>
			</li>     
			<li>
				<span>title：</span><input type="text" name="seotitle" class="title" value="<?php echo ($list["seotitle"]); ?>"/>
			</li>
			<li>
				<span>属性：</span><input type="checkbox" name="stick[]" value="a"><label>头条</label><input type="checkbox" name="stick[]" value="b"><label>加粗</label><input type="checkbox" name="stick[]" value="c"><label>幻灯</label><input type="checkbox" name="stick[]" value="d"><label>推荐</label>
			</li>
		</ul>
	</div>
	<div class="edit_pic">
		<input type="hidden" name="pic" id="picname"/>
		<img src="<?php echo ($thumb); ?>" id="s_pic"/>
		
		<div>
		<input id="pic_upload" name="pic_upload" type="file" multiple="true">
		</div>
	</div>
	<?php echo ($uploadify); ?>
	<div class="clear"></div>
	<div class="content">
		<div id="left"><span>内容：</span></div>
		<div id="editor">
			<textarea cols="80" id="content" name="content" rows="10"><?php echo ($list["content"]); ?></textarea>
			<?php echo ($ck); ?>
		</DIV>  
		<div class="clear"></div>
	</div>
</div>

<div id="add_attach">
	<div class="edit_head">
		<ul class="edit_attach">
			<li><span>关键词：</span><input type="text" name="keywords" class="duan" value="<?php echo ($list["keywords"]); ?>"/></li>
			<li><span>描述：</span><input type="text" name="description" class="title" value="<?php echo ($list["description"]); ?>"/></li>
			<li><span>跳转地址：</span><input type="text" name="url" class="duan" value="<?php echo ($list["sourceurl"]); ?>"/></li>
			<li><span>TAG标签：</span><input type="text" name="tag" class="duan" value="<?php echo ($list["tag"]); ?>"/></li>
			<li><span>来源名：</span><input type="text" name="sourcename" class="duan" value="<?php echo ($list["sourcename"]); ?>"/></li>
			<li><span>来源地址：</span><input type="text" name="sourceurl" class="duan"  value="<?php echo ($list["sourceurl"]); ?>"/></li>
			<li><span>允许评论：</span><input type="radio" checked="checked" name="allow_comment[]" value="1"><label>允许</label><input type="radio" name="allow_comment[]" value="2"><label>禁止</label>
			</li>
			<li><span>浏览权限：</span><select id="" name="groupids_view" onchange="" ondblclick="" class="" ><?php  foreach($groupids as $key=>$val) { if(!empty($groupidsvalue) && ($groupidsvalue == $key || in_array($key,$groupidsvalue))) { ?><option selected="selected" value="<?php echo $key ?>"><?php echo $val ?></option><?php }else { ?><option value="<?php echo $key ?>"><?php echo $val ?></option><?php } } ?></select></li>
			<li><span>发布时间：</span><input type="text" name="addtime" value="<?php echo ($list["addtime"]); ?>" id="datepicker" class="duan"/></li>
			<li><span>文 件 名：</span><input type="text" name="filename" value="<?php echo ($list["filename"]); ?>" class="duan"/></li>
		</ul>
	</div>
</div>

<div id="submit">	
		<button type="submit" onclick="ubt()">确认发布</button>	
		<button type="button" onclick="javascript:history.back();">返回</button>
</div>


</form>

</body>
</html>